package cn.xs.order.entity;

import java.sql.Timestamp;
import java.util.List;

import cn.xs.user.entity.User;

/**
 * 订单类---t_order
 * 
 * @author Administrator
 * 
 */
public class Order {

	private String id;
	private String consignee; // 收货人名字
	private String address;
	private Timestamp time; // 订单时间
	private String phone;
	private double sumPrice; // 订单总金额
	private String user_id;
	private String readme; // 备注
	private String status = order_waitdeliver; // 订单状态,默认为等待发货

	/*
	 * 订单的三种状态
	 */
	
	public static final String order_nopay = "未支付";
	public static final String order_waitdeliver = "等待发货";
	public static final String order_delivered = "已发货";
	public static final String order_sign = "已签收";

	public Order() {
		// TODO Auto-generated constructor stub
	}

	private User user;
	private List<OrderItem> orderItems;
	

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getConsignee() {
		return consignee;
	}

	public void setConsignee(String consignee) {
		this.consignee = consignee;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Timestamp getTime() {
		return time;
	}

	public void setTime(Timestamp time) {
		this.time = time;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public double getSumPrice() {
		return sumPrice;
	}

	public void setSumPrice(double sumPrice) {
		this.sumPrice = sumPrice;
	}

	public String getUser_id() {
		return user_id;
	}

	public void setUser_id(String userId) {
		user_id = userId;
	}

	public String getReadme() {
		return readme;
	}

	public void setReadme(String readme) {
		this.readme = readme;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public List<OrderItem> getOrderItems() {
		return orderItems;
	}

	public void setOrderItems(List<OrderItem> orderItems) {
		this.orderItems = orderItems;
	}

}
